package com.github.thorqin.toolkit.service;

import com.github.thorqin.toolkit.utility.AppConfigManager;

public interface IConfigurable {
	/**
	 * Framework will invoke this method after instance created or any configuration changed,
	 * service implements should decide whether or not re-initialize the service by itself.
	 * @param configManager Config manager object used to get the settings from the config file.
	 * @param serviceName Service instance name, typically used as configuration key.
	 * @param isReConfig indicate whether is a re-configuration action
	 */
	void config(AppConfigManager configManager, String serviceName, boolean isReConfig);
}
